package com.rpay.service.reptile.impl;

import com.rpay.dao.reptile.ReptileDao;
import com.rpay.service.reptile.IReptileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Title：
 * Description
 *
 * @author fxg06 on 2018/5/6
 * @version 1.0
 */
@Service
public class ReptileServiceImpl implements IReptileService {

    @Autowired
    private ReptileDao reptileDao;
    @Override
    public boolean saveReptile(String channel, String url, String content) {
        reptileDao.insert(channel, url, content);
        return true;
    }

    @Override
    public String getReptile(String channel) {
        return reptileDao.select(channel);
    }
}
